<div id="layout_main_top">

</div>
<div id="layout_main">

{if !isset($message)}


<form action="index.php?page=admin_download" method="post" enctype="multipart/form-data">
<INPUT TYPE=HIDDEN NAME="fileaction" value="{$fileaction}">
<INPUT TYPE=HIDDEN NAME="action" value="save">
<INPUT TYPE=HIDDEN NAME="download_id" value={$download_item.download_id}>
  <table id="small_table" cellspacing='0'>
    <tr class="menu_header">
  	<th colspan='3'>
  	Edit download
  	</th>
  	</tr>

  	<tr class="row_1">
	<td colspan='3' class="staticboldcenter">
	Please insert the following information:<br><span class="error">{$errormessage}</span><br>
	</td>
	</tr>
  	<tr class="row_1">
		<td class="staticboldright" >
		<br>
		</td>
		<td class="autonormaltop">
		<br>
		</td>
		<td class="autonormaltopright" width="16px">
		<br>
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright" valign="top">
		Name:
		</td>
		<td class="autonormalcenter" rowspan="1">
		<input type="text" id="name" value="{$download_item.name}" name="name" class="hugetext">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright" valign="top">
		Filename:
		</td>
		<td class="autonormalcenter" rowspan="1">
		<input type="file" id="download" name="download" class="hugetext">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright" valign="top">
		Screenshot:
		</td>
		<td class="autonormalcenter" rowspan="1">
		<input type="file" id="screenshot" name="screenshot" class="hugetext">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright" valign="top">
		Filesize:
		</td>
		<td class="autonormalcenter" rowspan="1">
		<input type="text" id="file_size" value="{$download_item.file_size}" name="file_size" class="largetext">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright" valign="top">
		Level:
		</td>
		<td class="autonormalcenter" rowspan="1">
		<input type="text" id="user_level" value="{$download_item.user_level}" name="user_level" class="smalltext">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright" valign="top">
		Description:
		</td>
		<td class="autonormalcenter" rowspan="8">
		<textarea rows="7" cols="42" name="description">{$download_item.description}</textarea>
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldright">
		</td>
		<td class="autonormal">
		&nbsp;
		</td>
	</tr>
  	<tr class="row_1">
		<td class="staticboldright">
		<br>
		</td>
		<td class="autonormalbottom">
		<br>
		</td>
		<td class="autonormalbottomright">
		&nbsp;
		</td>
	</tr>
	<tr class="row_1">
		<td class="staticboldcenter" colspan="3">
		<br>
		<input name="newitem" type="submit" value="save news">
		</td>
	</tr>

 </table>
</form>

{else}



<DIV class="MenuHead">
Succesfull!
</DIV>

<DIV class="MenuText">
{$message}
</DIV>




{/if}
</div>
<div id="layout_main_bottom">

</div>
